package com.wk1un2.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface MenusDao {
	// 查询所有菜单信息
	public List<Map<String, Object>> getAllMenus(Map<String, Object> map);

	// 分页查询
	public Integer count(Map<String, Object> map);

	// 添加菜单
	public Integer add(Map<String, Object> map);

	// 修改菜单
	public Integer update(Map<String, Object> map);

	// 刪除菜单 如果关联有角色信息不能删除
	public Integer delete( Integer menuid);
	
	// 同一模块下节点名不能重复
		public List<Map<String, Object>> getMenusName(Map<String, Object> map);
	
	//查询角色条数
	public Integer getRolesCount(Integer menuid); 
	
	
	public List<Map<String, Object>> findAll();

	public List<Map<String, Object>> getRolesMenus(Integer rm_relationid);
	
	
	
	public List<Map<String, Object>> getModules(Integer menuid);
	
}
